import requests

import config


def submit_order(token):
    submit_order_url=f'{config.URL}/wx/order/submit'
    headers_data={
        'Content-Type':'application/json',
        'X-Litemall-Token':token}
    test_data={
                "addressId":"2",
                "cartId":"0",
                "couponId":"0",
                "userCouponId":"0",
                "grouponLinkId":0,
                "grouponRulesId":0,
                "message":""
                }
    return requests.post(url=submit_order_url,headers=headers_data,json=test_data)